package com.qf.common.mp.utils;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Author hehecheng
 * Date 2024/11/11
 * 祝我们都能遇见真诚的人
 * 见字如面
 */
@Component
public class RabbitMqUtils {

    @Resource
    private RabbitTemplate rabbitTemplate;

    public void sendMsg(String ex, String routeKey, String msg) {
        rabbitTemplate.convertAndSend(ex, routeKey, msg);
    }

}
